<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/animate.min.css" rel="stylesheet">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <link href="/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <base target="_blank">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <table id="sysRoleTable">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/js/content.min.js?v=1.0.0"></script>
<script src="/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/js/plugins/validate/messages_zh.min.js"></script>
<script src="/js/plugins/layer-pc/layer.js"></script>
<script src="/common/form-validator.js"></script>
<script src="/common/bootstrap-table.js"></script>
<script src="/common/hmtool.js"></script>
<script src="/js/jquery.cookie.js"></script>
<script type="text/javascript">
    var id = parent.id,tableName = GetQueryString('tableName');
    $(function () {
        var table = {};
        table['id'] = 'sysRoleTable';
        table['url'] = SSO_URL + 'gb/database/queryColumnsById';
        table['pagination'] = false;
        table['queryParams'] = function () {
            var queryParams = {};
            queryParams['id'] = id;
            queryParams['tableName'] = tableName;
            return queryParams;
        };
        table['columns'] = [{
            field: 'columnName',
            title: '字段名'
        }, {
            field: 'columnType',
            title: '字段类型'
        }, {
            field :'columnComment',
            title:'字段说明'
        },{
            field:'columnKey',
            title:'键'
        },{
            field:'isNullable',
            title:'是否可为空'
        },{
            field:'collationName',
            title:'字符集'
        },{
            field : 'extra',
            title : '扩展说明'
        }];
        initTable(table);
    });
</script>
</body>
</html>